package com.jsu.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.jsu.dao.UsrMapper;
import com.sun.org.apache.regexp.internal.recompile;

@Component
public class UsrService {

	@Autowired
	UsrMapper usrMapper;
	
	public Integer getIdByName(String username){
		Integer id = usrMapper.selectIdByName(username);
		return id;
	}
}
